import request from "@/utils/apiConfigs.js"

export default {
    //获取列表数据
    getMemberList(data) {
        return request({
            url: "/member",
            type: "get",
            data: data,
        })
    },
    // 删除列表数据
    delMeberList(id) {
        return request({
            url: `/member/${id}`,
            method: "delete",
            type: "delete",
        })
    },

    // 搜索数据
    getSearch(cardName, name) {
        return request({
            url: `member/${cardName}/${name}`,
            type: 'post',
            method: "post",
        })
    },
    // 新增数据
    getMemberAdd(cardName, name,phone) {
        return request({
            url: `member/${cardName}/${name}/${phone}`,
            type: "put",
            method: 'put',
        })
    },
    // 编辑数据接口
    getEbditMember(cardName,name){
        return request({
            url: `member/${cardName}/${name}`,
            type: "post",
            method: 'post',
        })
    }
}